package com.sxt.entity;

import java.util.HashSet;
import java.util.Set;

/**
 * EUser entity. @author MyEclipse Persistence Tools
 */

@SuppressWarnings("serial")
public class EUser implements java.io.Serializable {

	// Fields

	private Integer id;
	private String name;
	
	private Set<EMail> eMails = new HashSet<EMail>(0);

	// Constructors

	/** default constructor */
	public EUser() {
	}

	/** full constructor */
	public EUser(String name) {
		this.name = name;
	}

	

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Set<EMail> geteMails() {
		return eMails;
	}

	public void seteMails(Set<EMail> eMails) {
		this.eMails = eMails;
	}

	@Override
	public String toString() {
		return "EUser [id=" + id + ", name=" + name + ", eMails=" + eMails
				+ "]";
	}
	
	

}